<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="https://unpkg.com/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <input type="checkbox" name="" id="john" value="John" v-model="checkedNames">
            john
            <input type="checkbox" name="" id="jack" value="Jack" v-model="checkedNames">
            jack
            <input type="checkbox" name="" id="mike" value="Mike" v-model="checkedNames">
            mike
            <br>
            <span>checked names : {{checkedNames}}</span>
        </div>
    <script>
        var vm=new Vue({
            el:'#app',
            data:{
                checkedNames:[]
            }
        });
    </script>
    </body>
    
</html>